home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / windows / smehtm10.zip / SMEHTM.HLP (.txt) < prev    next >
OS/2 Help File  |  1996-06-23  |  33KB  |  721 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Smalled HTML Extensions ΓòÉΓòÉΓòÉ
  3.  
  4.                                    SMEHTM 1.00
  5.  
  6. The Smalled HTML Extensions are written as extensions for the Smalled editor. 
  7. However, SMEHTM can be used with any other MLE based editor, such as the OS/2 
  8. system editor or Zed. The Extensions act as a floating toolbar in the form of a 
  9. notebook. Also included in this package is an HTML example page that shows some 
  10. useful samples of HTML tags. 
  11.  
  12. o Disclaimer Registering/Shareware 
  13. o Using SMEHTM 
  14. o The Pages 
  15. o What's New/History 
  16. o Future Attractions 
  17. o About the Author 
  18. o Smalled 
  19. o Thanks 
  20.  
  21.  
  22. ΓòÉΓòÉΓòÉ 1.1. Using the Smalled HTML Extensions ΓòÉΓòÉΓòÉ
  23.  
  24.  When you start using SMEHTM, the first thing you should do is give the main 
  25. window the dimensions and place you prefer on the screen. These will be 
  26. remembered. (The SMEHTM controls may have different sizes for different screen 
  27. resolutions.) 
  28.  
  29. The next thing to do is to decide which editor you will use. SMEHTM was built 
  30. with Smalled in mind, but it will function with any MLE based editor, such as 
  31. the system editor (E.EXE). The first time SMEHTM is started, it will 
  32. automatically start the system editor. It's fairly certain that everyone has 
  33. this editor. If another editor is preferred, use the Config page to tell the 
  34. Smalled HTML Extensions to use that editor. (SMEHTM can be started from within 
  35. Smalled v1.4 or higher. In that case this setting doesn't have any meaning.) 
  36.  
  37. Every time a button in SMEHTM is pressed a tag will be entered in the editor, 
  38. and the focus is then returned to the editor. All the HTML tags supported by 
  39. SMEHTM are explained in the sections about the SMEHTM pages. 
  40.  
  41. Most of the time an HTML tag consists of two pieces, between which is text that 
  42. will  be formatted. For example, <H1>formatted text</H1>. You can press the 
  43. Heading 1 key on the SMEHTM Font page and these tags will be entered in the 
  44. text as <H1></H1> with the cursor between them. You can then start typing right 
  45. away. This method is mostly used for writing an HTML page from scratch. 
  46. Another method for entering HTML tags is to select the text you want to format 
  47. and then hit the appropriate button in SMEHTM. The tags will be placed around 
  48. the selected text and the selected text will stay intact. This method is used 
  49. when adding tags to already existing text. 
  50.  
  51. The exception to this rule is the Char page which can be used to add accents to 
  52. letters. If this is desired, you must select exactly one letter and hit the 
  53. accent button of choice. If more than one character is selected or nothing is 
  54. selected, nothing will happen. 
  55.  
  56. Many of the pages in SMEHTM contain controls other than buttons. These controls 
  57. are always grouped together with at least one button. If these controls (most 
  58. of them are spinbuttons) don't contain a value or show the value 0, nothing 
  59. will be inserted in their place in the tag. Many tags can have different forms. 
  60. The <HR> tag, for example, has many possible combinations. Here are some of 
  61. them: 
  62.  
  63. Example 
  64.  
  65. <HR>
  66. <HR NOSHADE>
  67. <HR WIDTH=66% NOSHADE>
  68. <HR ALIGN=right SIZE=4 WIDTH=66 NOSHADE>
  69.  By using the extra controls described above, any of these combinations can be 
  70. made very quickly. 
  71.  
  72. SMEHTM supports fast keys to access the several pages and controls. This is 
  73. described in the section Moving around. Most things should be pretty intuitive, 
  74. but it wouldn't hurt to read this section. 
  75.  
  76.  
  77. ΓòÉΓòÉΓòÉ 1.1.1. Moving Around ΓòÉΓòÉΓòÉ
  78.  
  79.  All the controls in SMEHTM support shortcuts. Take a look at the buttons and 
  80. tags and you will see some of the letters are underlined. This means these 
  81. controls can be activated with the push of just one button. You can jump from 
  82. page to page by typing just the first letter of the tag. The same goes for the 
  83. buttons. They can be accessed with the ALT key in combination with the 
  84. underlined letter on the button. 
  85.  
  86. There is one snag though. These keys only act on the active window. With a 
  87. notebook there are always two possibilities. 
  88.  
  89. o The notebook window is active. If this is the case, an emphasis rectangle is 
  90.   drawn in the current active tab and you can move to other pages just by 
  91.   pressing the first letter of the tab or by using the left/right arrows. If 
  92.   this window isn't active (emphasis rectangle isn't showing), just click on 
  93.   the status line to activate it. The status line is the area next to the two 
  94.   arrow pushbuttons. 
  95. o The dialog in one of the notebook pages is active. You can tell if this is 
  96.   the case by looking at the controls in the dialog. One of these controls 
  97.   should have the focus. Another way of detecting this is to look at the 
  98.   notebook control. When this doesn't have the focus, the dialog probably will. 
  99.   (Of course the frame needs to be selected.)  When this is the case, buttons 
  100.   can be activated with the ALT-letter combination. If this is done, the 
  101.   function associated with the button will be executed. 
  102.  
  103. Another way of moving between controls is the tab key. If this key is pressed, 
  104. the next control will be made active. Pressing Return will activate the current 
  105. control. 
  106.  
  107.  
  108. ΓòÉΓòÉΓòÉ 1.2. The Smalled HTML Extensions Pages ΓòÉΓòÉΓòÉ
  109.  
  110.  All controls in SMEHTM are ordered in a notebook. Every page in this notebook 
  111. handles a different aspect of the HTML tagging language. (This means the number 
  112. of pages will certainly grow in the future.)  In the help description of each 
  113. page, a short explanation of the HTML code which is handled by that page 
  114. appears. Also in the SMEHTM package is an example HTML page which contains a 
  115. number of samples. 
  116.  
  117. o Main 
  118. o Font 
  119. o Page 
  120. o Char 
  121. o List 
  122. o Link 
  123. o Table 
  124. o Image 
  125. o Templates 
  126. o Tools 
  127. o Config 
  128. o Register 
  129.  
  130.  
  131. ΓòÉΓòÉΓòÉ 1.2.1. Page 1 (Main) ΓòÉΓòÉΓòÉ
  132.  
  133.  The Main page is used to set up the mandatory items for a basic HTML document. 
  134. By pressing the Basic button on this page, the mandatory HTML tags are added to 
  135. the text editor window. It doesn't matter how much text already exists in the 
  136. editor, this command will add the necessary codes at the top and bottom of the 
  137. text. 
  138.  
  139. If the two entry fields on the Main page are not filled, the Smalled HTML 
  140. Extensions will add the mandatory codes in their simplest form. In this case, 
  141. the following will be added: 
  142.  
  143. Basic code 
  144.  
  145. <!DOCTYPE HTML "-//IETF//DTD HTML//EN">
  146. <!--Smalled HTML Extensions-->
  147. <HTML>
  148. <HEAD><TITLE></TITLE></HEAD>
  149. <BODY>
  150. </BODY>
  151. </HTML>
  152. The first two lines in this sample are Comment lines. They are added to 
  153. identify the document. Some browsers like to see the first line. The second 
  154. line is added to show that the document was created with the Smalled HTML 
  155. Extensions. 
  156. The next statement is the first real HTML statement, <HTML>. The <HTML> tag 
  157. defines that the document is an HTML page. Note that the document is closed at 
  158. the end with </HTML>, nothing beyond </HTML> will show up in your document. 
  159.  
  160. The <HEAD> element contains information about the document. The <HEAD></HEAD> 
  161. combination must be between the <HTML> and the <BODY> tags. In most cases it 
  162. will only contain the <TITLE> tag. 
  163. With the <TITLE> tag, a line can be entered that describes the document. This 
  164. title will appear in the titlebar of the browser you're using when viewing an 
  165. HTML document. This text can be entered in the Title text field on the Main 
  166. page. SMEHTM will automatically enter this text between the <TITLE> and 
  167. </TITLE> tags. 
  168.  
  169. In most HTML pages, a background image is used. To accomplish this, the <BODY> 
  170. tag has to be modified. This tag uses a BACKGROUND= statement to accomplish 
  171. this. Behind this statement the name of an image file (GIF, JPG...) must be 
  172. entered between quotes. If the name of an image file is entered in the 
  173. Background image field, SMEHTM will change the <BODY> statement appropriately 
  174. when the basic code is entered. 
  175.  
  176.  
  177. ΓòÉΓòÉΓòÉ 1.2.2. Page 2 (Font) ΓòÉΓòÉΓòÉ
  178.  
  179.  An HTML document doesn't have the capability to handle text that a word 
  180. processor has. It can only display one font at a time, but it can do a lot with 
  181. that one font. In